//封装post请求
import $http from "@/api/myAxios/MyAxios";
const $httpPost = (url, objData) => {
    if (objData == '' || objData == null) {
        objData = ''
    }
    return new Promise(((resolve, reject) => {
        $http.post(url, JSON.stringify(objData)).then((res) => {
            resolve(res)
        }).catch(res => {
            reject(res)
        })
    }))
}
export default $httpPost
